package com.demo.consumer;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @Author wangfeng
 * @Description
 * @Date 2021/11/25
 **/
@Slf4j
@Component
@RocketMQMessageListener(topic = "springboot-mq",consumerGroup = "springboot-mq-consumer-1")
public class TestMqListener implements RocketMQListener<String> {
	@Override
	public void onMessage(String s) {
		log.info(s);
	}
}
